/* Services 页面专属样式 */
:root {
  --page-side-pad: clamp(20px, 3.2vw, 60px);
}

/* 引入自定义字体 */
@font-face {
    font-family: 'MontserratBold';
    src: url('../fonts/Montserrat-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratLight';
    src: url('../fonts/Montserrat-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Semi Bold';
    src: url('../fonts/Montserrat Semi Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 通用分隔与标题 */
.divider {
  height:1px;
  background-color: #a3a2a2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: 35px;
  padding-right: 35px;
  background-clip: content-box;
  margin-top: 25px;
}

.divider:first-of-type {
  margin-top: clamp(16px, 1.85vw, 35px);
  margin-bottom: clamp(16px, 1.85vw, 35px);
}

.divider:nth-of-type(2) {
  margin-top: 0;
  margin-bottom: clamp(16px, 1.9vw, 36px);
  margin-top: clamp(14px, 1.7vw, 32px);
}

.divider:last-of-type {
  margin-top: clamp(28px, 3.85vw, 74px);
  margin-bottom: clamp(20px, 2.4vw, 46px);
}

.section-title {
  padding: 0 clamp(10px, 3.2vw, 20px) clamp(10px, 3.9vw, 24px);
  font-size: clamp(16px, 1.25vw, 24px);
  letter-spacing: clamp(0.5px, 0.06vw, 1px);
  text-transform: uppercase;
  max-width: 1920px;
  margin: 0 auto;
  font-family: 'MontserratBold', Arial, sans-serif;
}

/* 内容区域样式 */
.content-section {
  padding: 0 clamp(20px, 3.2vw, 60px);
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
	margin-top: 25px;
}

/* 介绍文字 */
.intro-text {
  max-width: 1495px;
  max-height: 367px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 1.2vw, 60px);
  line-height: 1.8;
  font-size: clamp(5px, 1.0vw, 18px);
  color: #fff;
  text-align: center;
  margin-bottom: clamp(40px, 4.5vw, 80px);
  font-family: 'MontserratLight', Arial, sans-serif;
}

.intro-text p {
  margin-bottom: clamp(18px, 2.5vw, 25px);
  margin-top: clamp(18px, 2.5vw, 25px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro-text strong {
  color: #fff;
}

/* 图片展示区域 */
.image-gallery {
  display: flex;
  gap: clamp(5px, 1.0vw, 20px);
  margin-bottom: clamp(40px, 4.5vw, 80px);
  flex-wrap: wrap;
}

.gallery-item {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* 特色项目展示 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 67px) clamp(30px, 2.8vw, 88px);
  margin-bottom: clamp(60px, 6.5vw, 120px);
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  max-height: 713px;
  width: 100%;
  height: auto;
  aspect-ratio: 516 / 713;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* 响应式适配 */
@media (max-width: 1500px) and (min-width: 768px) {
  .products-section,
  .scenes-section,
  .section-title {
    padding-left: var(--page-side-pad);
    padding-right: var(--page-side-pad);
  }

  .divider {
    padding-left: var(--page-side-pad);
    padding-right: var(--page-side-pad);
  }

  .image-gallery {
    gap: 20px;
  }

  .gallery-item {
    min-width: 250px;
  }
}

@media (max-width: 767px) {
  .divider {
    padding-left: var(--page-side-pad);
    padding-right: var(--page-side-pad);
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .divider:first-of-type {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .divider:nth-of-type(2) {
    margin-bottom: 10px;
  }

  .divider:last-of-type {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .section-title {
    padding: 0 var(--page-side-pad);
    font-size: 18px;
  }

  .image-gallery {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-item {
    min-width: 0;
    flex: none;
    width: 100%;
  }

  .intro-text strong {
    font-size: clamp(16.5px, 4vw, 24px);
    white-space: nowrap;
  }

  .intro-text p:not(:has(strong)) {
    font-size: clamp(12px, 3vw, 16px);
    line-height: 1.4;
    margin-bottom: 0;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 2;
    hyphenate-limit-lines: 2;
    word-break: break-word;
  }

  .intro-text {
    max-height: none;
    height: auto;
    padding: 0 clamp(8px, 0.5vw, 24px);
  }

  .intro-text p {
    margin-bottom: 10px;
    margin-top: 10px;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
  }

  .intro-text-zh .zh-para {
    line-height: 2;
    margin-bottom: 0;
    margin-top: 10px;
  }

  .intro-text-zh .zh-para:first-child {
    margin-top: 0;
  }

  .intro-text-zh strong {
    display: block;
    margin-bottom: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 479px) {
  /* 移动端样式已在767px断点中定义 */
}